import Layout from '@/layouts/index.vue'

import ListIcon from '@/assets/test-img/icon_menu_shuju.svg'
import FormIcon from '@/assets/test-img/icon_menu_cheliang.svg'
import ModelIcon from '@/assets/test-img/icon_menu_zj.svg'

export default [
  {
    path: '/auth',
    name: 'auth',
    component: Layout,
    redirect: '/auth/empList',
    meta: {
      title: '权限管理',
      icon: ModelIcon
    },
    children: [
      {
        path: 'empList',
        name: 'empList',
        component: () => import('@/pages/auth/emp/index.vue'),
        meta: {
          title: '用户管理',
          icon: FormIcon
        }
      },
      {
        path: 'roleList',
        name: 'roleList',
        component: () => import('@/pages/auth/role/index.vue'),
        meta: {
          title: '角色管理',
          icon: ListIcon
        }
      }
    ]
  }
]
